<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
<title>${name_china}管理列表</title>
<%@include file="/common/head.jsp" %>

</head>
<body class="iframe-page">
<div class="page-title-wrapper">
    <div class="page-title">
        <div class="page-title-text">
            <span>${name_china}管理</span>
        </div>
        <div id="toolbar" style="float: right"></div>
    </div>
    <div class="page-title-border"></div>
</div>
<div id="show">
</div>
<script>
	//请求url
	var CONST_URL = {
	   	ATTENTION: basePath + "${common_url}attention"
	};
	
    var  modelData = "null",
    permission = CommonUtil.getPermission('${name_english}');
    
    $(function () {
       modelData = ${modelData};
       if(modelData != "null"){
       	var html = "";
       	for(var i=0;i<modelData.length;i++){
       		if(modelData[i].type == "top"){
       			html = html + '<p>'+'&nbsp;'+'</p>'
       					    + '<p style="font-size: 20px;font-weight:bold;">'+modelData[i].name+'</p>'
       					    + modelData[i].content
       					 	+'<img src="'+modelData[i].img+'">';
       		}
       		if(modelData[i].reorder == 2 || modelData[i].reorder == 3){
       			html = html + '<p>'+ modelData[i].content +'</p>'
       						+'<img src="'+modelData[i].img+'">';
       			}
       		if(modelData[i].reorder == 4 || modelData[i].reorder == 6){
       			html +=  '<p>'+ modelData[i].name+'</p>'
       					+'<img src="'+modelData[i].img+'">'
       					+ modelData[i].content
       		}
       		if(modelData[i].reorder == 5 || modelData[i].reorder == 8){
       			html +=  '<img src="'+modelData[i].img+'">'
       		}
       		if(modelData[i].reorder == 7){
       			html +=  '<img src="'+modelData[i].img+'">'
       					+ modelData[i].content
       		}
       	}
        $("#show").html(html);
       }
    });
    
    function getContent(){
    	window.location.href = CONST_URL.ATTENTION; 
    }
</script>
</body>
</html>